<template>
  <div>
    <div class="mainheader">
      <header1>猫眼电影</header1>
      <header2></header2>
      <!-- 子路由的链接 -->
      <ul class="nav">
        <div>
          深圳
          <div class="sanjiao"></div>
        </div>
        <li><router-link to="/hot">热映</router-link></li>
        <li><router-link to="/cinema">影院</router-link></li>
        <li><router-link to="/wait">待映</router-link></li>
        <li><router-link to="/classic">经典电影</router-link></li>
        <img src="../../assets/ss.png" />
      </ul>
     </div>


      <!-- 子路由的路由出口 -->
      <div class="con">
        <router-view></router-view>
      </div>
    
  </div>
</template>

<script>
//引入第一个头部
//../../ 相对路径
import header1 from "../../components/commonh/header1.vue";
//@ 表示  src开始找起   ，绝对路径
import header2 from "@/components/commonh/header2.vue";
export default {
  name: "movie",
  //注册
  components: {
    header1,
    header2,
  },
};
</script>

<style scoped>
.con {
  margin-top: 154.5px;
  margin-bottom: 51px;
}
.mainheader {
  position: fixed;
  top: 0;
  width: 100%;
  height: 154.5px;
  z-index: 999;
}
.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  height: 44px;
  line-height: 44px;
  font-size: 15px;
  background: white;
}

.nav .sanjiao {
  width: 0;
  height: 0;
  /* 正方形 */
  border: 4px solid #b0b0b0;
  /* 转变三角形 */
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  display: inline-block;
  margin-top: 5px;
  margin-left: 4px;
}

.nav img {
  width: 22px;
  height: 20px;
}

.nav a {
  color: #666;
  height: 40px;
  display: inline-block;
}
.nav a.router-link-exact-active {
  font-size: 17px;
  font-weight: bold;
  border-bottom: 3px solid #f03d37;
}
</style>